Skip to content

fix: tune vmsingle resource limits and query settings#1494

Merged
bo0tzz merged 1 commit intomainfrom
fix/monitoring-vmsingle-resources
Apr 8, 2026
Merged

fix: tune vmsingle resource limits and query settings#1494
bo0tzz merged 1 commit intomainfrom
fix/monitoring-vmsingle-resources

Conversation

@zackpollard
Copy link
Copy Markdown
Member

@zackpollard zackpollard commented Apr 8, 2026

  • remove explicit search.maxUniqueTimeseries cap (600k) to let vm auto-calculate (~4.3m with 32gi)
  • add search.logSlowQueryDuration for query observability
  • bump vmsingle memory from 8gi to 32gi with proper requests
  • add cpu/memory requests for both vmsingle and vmagent

- remove explicit search.maxUniqueTimeseries cap (600k) to let vm auto-calculate (~4.3m with 32gi)
- add search.logSlowQueryDuration for query observability
- bump vmsingle memory from 8gi to 32gi with proper requests
- add cpu/memory requests for both vmsingle and vmagent
- remove cpu limit on vmsingle to allow unbounded burst
@zackpollard zackpollard requested a review from a team as a code owner April 8, 2026 11:54
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

--- kubernetes/apps/monitoring/victoria-metrics/app Kustomization: flux-system/victoria-metrics HelmRelease: monitoring/victoria-metrics

+++ kubernetes/apps/monitoring/victoria-metrics/app Kustomization: flux-system/victoria-metrics HelmRelease: monitoring/victoria-metrics

@@ -49,16 +49,22 @@

     vmagent:
       spec:
         resources:
           limits:
             cpu: 2000m
             memory: 1Gi
+          requests:
+            cpu: 500m
+            memory: 512Mi
     vmalert:
       enabled: false
     vmsingle:
       spec:
         extraArgs:
-          search.maxUniqueTimeseries: '600000'
+          search.logSlowQueryDuration: 3s
         resources:
           limits:
-            memory: 8Gi
+            memory: 32Gi
+          requests:
+            cpu: 2000m
+            memory: 32Gi
 

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

--- HelmRelease: monitoring/victoria-metrics VMAgent: monitoring/vmetrics

+++ HelmRelease: monitoring/victoria-metrics VMAgent: monitoring/vmetrics

@@ -20,9 +20,12 @@

   remoteWrite:
   - url: http://vmsingle-vmetrics.monitoring.svc.cluster.local.:8428/api/v1/write
   resources:
     limits:
       cpu: 2000m
       memory: 1Gi
+    requests:
+      cpu: 500m
+      memory: 512Mi
   scrapeInterval: 20s
   selectAllByDefault: true
 
--- HelmRelease: monitoring/victoria-metrics VMSingle: monitoring/vmetrics

+++ HelmRelease: monitoring/victoria-metrics VMSingle: monitoring/vmetrics

@@ -8,20 +8,23 @@

     app.kubernetes.io/component: victoria-metrics-k8s-stack-vmsingle
     app.kubernetes.io/instance: victoria-metrics
     app.kubernetes.io/managed-by: Helm
     app.kubernetes.io/name: victoria-metrics-k8s-stack
 spec:
   extraArgs:
-    search.maxUniqueTimeseries: '600000'
+    search.logSlowQueryDuration: 3s
   image:
     tag: v1.138.0
   port: '8428'
   replicaCount: 1
   resources:
     limits:
-      memory: 8Gi
+      memory: 32Gi
+    requests:
+      cpu: 2000m
+      memory: 32Gi
   retentionPeriod: '1'
   storage:
     accessModes:
     - ReadWriteOnce
     resources:
       requests:

@bo0tzz bo0tzz merged commit 7d776b9 into main Apr 8, 2026
17 checks passed
@bo0tzz bo0tzz deleted the fix/monitoring-vmsingle-resources branch April 8, 2026 11:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants